package com.xdl.moudle.utils.util.apibase;

/**
 * 
 * @author xiazhengjiao
 * @date 2017年8月29日
 */
public class ReturnCode {
	
    public final static int LOGON = -1;
    public final static String MSG_LOGON = "登录失效或者未登录";
	
    public final static int SUCCESS = 0;
    public final static String MSG_SUCCESS = "Success";
    
    public final static int WARN = 1;
    public final static String MSG_WARN = "Warn";

    public final static int FAIL = 20013;
    public final static String MSG_FAIL = "服务器异常";
    
    public final static int TOKEN = 20001;
    public final static String MSG_TOKEN = "获取token错误或者token无效";
    
    public final static int ILLEGAL_DOCUMENT = 20002;
    public final static String MSG_ILLEGAL_DOCUMENT = "不合法的凭证";
    
    public final static int ILLEGAL_UID = 20003;
    public final static String MSG_ILLEGAL_UID = "用户名或密码错误";
    
    public final static int ILLEGAL_MENU = 20004;
    public final static String MSG_ILLEGAL_MENU = "不合法的菜单";
    
    public final static int ILLEGAL_BTN = 20004;
    public final static String MSG_ILLEGAL_BTN = "不合法的按钮";
    
    public final static int ILLEGAL_VERSION = 20006;
    public final static String MSG_ILLEGAL_VERSION = "不合法的版本号";
    
    public final static int ILLEGAL_PARAMS = 20008;
    public final static String MSG_ILLEGAL_PARAMS = "不合法的请求参数";
    
    public final static int ILLEGAL_FORMAT = 20009;
    public final static String MSG_ILLEGAL_FORMAT = "不合法的请求格式";
    
    public final static int ILLEGAL_ID = 20010;
    public final static String MSG_ILLEGAL_ID = "请求的ID不合法";
    
    public final static int EDIT_FAIL = 20011;
    public final static String MSG_EDIT_FAIL = "修改失败，并发冲突";
    
    public final static int NO_PERMISSION = 20012;
    public final static String MSG_NO_PERMISSION = "权限不足";
    
    public final static int COMPANY_DISABLE = 30001;
    public final static String MSG_COMPANY_DISABLE = "企业已停用";
    
    public final static int DEPARTMENT_DISABLE = 30002;
    public final static String MSG_DEPARTMENT_DISABLE = "部门不存在";
    
    public final static int INVALID_USER = 30003;
    public final static String MSG_INVALID_USER = "失效用户在企业中的状态";
    
    public final static int SYSTEM_BUSY = 40000;
    public final static String MSG_SYSTEM_BUSY = "系统繁忙";
    
    
}